package service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import pojo.ArchivePojo;
import pojo.UserlogPojo;
import dao.UserlogDao;
import util.MybatisSessionFactory;

public class UserlogService {
	SqlSession sql = MybatisSessionFactory.getSqlSession();
	UserlogDao dao = sql.getMapper(UserlogDao.class);

	public void addlog(
			@Param("user_id") String user_id,
			@Param("archive_id") String archive_id,
			@Param("operation") String operation) {
		dao.addlog(user_id, archive_id, operation);
		sql.commit();
	}
	public List<Map> count(
			@Param("starttime") String starttime,
			@Param("endtime") String endtime){
				return dao.count(starttime, endtime);
		
	}

	
}
